package com.dys.testpolymorphic;

/**
 * @className: com.dys.testpolymorphic.Pig
 * @description: com.dys.testpolymorphic
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/20 下午11:37
 */
public class Pig extends Animal {
    double weight;

    @Override
    public void shout() {
        System.out.println("小猪嗯嗯嗯叫...");
    }

    public void eat() {
        System.out.println("小猪吃的方法...");
    }
}
